#pragma once

#include "../core/protocol_handler.hpp"
#include "../utils/logger.hpp"

// WebSocket 协议处理器
class WebSocketHandler : public ProtocolHandler
{
public:
    void handleMessage(const std::string &message) override;
    void onConnection(const TcpConnectionPtr &conn) override;

private:
    void send(const std::string &message);
};